<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('API接口文档-订单查询')" />
</head>



<body class="front">
<!-- scrollToTop -->
<!-- ================ -->
<div class="scrollToTop"><i class="icon-up-open-big"></i></div>

<!-- page wrapper start -->
<!-- ================ -->
<div class="page-wrapper">
    <!-- main start -->

    <!-- page-intro start-->
    <!-- ================ -->
    <div class="page-intro">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <ol class="breadcrumb">
                        <li><i class="fa fa-home pr-10"></i><a href="../../index.html">首页</a></li>
                        <li>API接入文档</li>
                        <li class="active">订单查询接口</li>
                    </ol>
                </div>
            </div>
        </div>
    </div>
    <!-- page-intro end -->
    <!-- main-container start -->
    <!-- ================ -->
    <section class="main-container">

        <div class="container">
            <div class="row">

                <!-- sidebar start -->
                <aside class="col-md-3">
                    <div class="sidebar">
                        <div class="block clearfix">
                            <h3 class="title">API接入文档</h3>
                            <div class="separator"></div>
                            <nav>
                                <ul class="nav nav-pills nav-stacked">
                                    <li class=""><a href="../prepare.html">准备工作</a></li>
                                    <li class=""><a href="pay.html">发起付款接口</a></li>
                                    <li class="active"><a href="search.html">查询接口</a></li>
                                    <li class=""><a href="../../plugin.html" style="display:none">支付插件下载</a></li>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </aside>        <!-- sidebar end -->

                <!-- main start -->
                <!-- ================ -->
                <div class="main col-md-9">

                    <!-- page-title start -->
                    <!-- ================ -->
                    <h4 class="page-title">发起订单查询接口(可选)</h4>
                    <!--<hr>
                    <h5>SDK Demo下载<h5>
                    <p><a class="btn btn-danger" href="../../demos/sdk-php-v1.0.0.zip">PHP SDK:sdk-php-v1.0.0.zip(utf-8)</a></p>-->
                    <hr>
                    <!-- page-title end -->
                    <h5>订单查询接口URL：</h5>
                    <pre><span name="curHost"></span>/api/v1/charges/{tradeNo}</pre>
                    <h5>传参方式：Post表单</h5>
                    <hr>
                    <h5>请求参数：</h5>
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th width="">#</th>
                            <th>参数名</th>
                            <th width="19%">含义</th>
                            <th width="10%">类型</th>
                            <th width="8%">必填</th>
                            <th>说明</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr>
                            <td>1</td>
                            <td><small>tradeNo</small></td>
                            <td><small>订单号</small></td>
                            <td><small>string</small></td>
                            <td><b><small>必填</small></b></td>
                            <td><p class="text-danger">url路径参数。注意该字段不用参与签名</p></td>
                        </tr>
                        <tr>
                            <td>2</td>
                            <td><small>uid</small></td>
                            <td><small>商户uid</small></td>
                            <td><small>string</small></td>
                            <td><b><small>必填</small></b></td>
                            <td><small>商户的uid。登录后台可获取</small></td>
                        </tr>
                        <tr>
                            <td>3</td>
                            <td><small>sign</small></td>
                            <td><small>签名参数</small></td>
                            <td><small>string</small></td>
                            <td><b><small>必填</small></b></td>
                            <td><small>参考发起付款接口</small></td>
                        </tr>

                        <tr>
                            <td>4</td>
                            <td><small>timestamp</small></td>
                            <td><small>系统时间戳</small></td>
                            <td><small>string</small></td>
                            <td><b><small>必填</small></b></td>
                            <td><small>当前系统时间戳（单位毫秒）</small></td>
                        </tr>
                        </tbody>
                    </table>

                    <p class="text-danger"><strong>注意：token在安全上非常重要，一定不要显示在任何网页代码、网址参数中。只可以放在服务端。计算sign时，先在服务端计算好，把计算出来的sign传出来。严禁在客户端计算sign，严禁在客户端存储token。</strong></p>

                    <h5>响应参数：</h5>
                    <table class="table table-striped table-bordered">
                        <thead>
                        <tr>
                            <th width="">#</th>
                            <th>参数名</th>
                            <th width="19%">含义</th>
                            <th width="10%">类型</th>
                            <th>说明</th>
                        </tr>
                        </thead>
                        <tbody>

                        <tr>
                            <td>1</td>
                            <td><small>code</small></td>
                            <td><small>返回码</small></td>
                            <td><small>int(32)</small></td>
                            <td><small>0表示接口调用正常。非0表示异常</small></td>
                        </tr>

                        <tr>
                            <td>2</td>
                            <td><small>msg</small></td>
                            <td><small>提示信息</small></td>
                            <td><small>int(32)</small></td>
                            <td><small>对应返回码code的提示信息。</small></td>
                        </tr>

                        <tr>
                            <td>3</td>
                            <td><small>timestamp</small></td>
                            <td><small>时间戳</small></td>
                            <td><small>int(64)</small></td>
                            <td><small>服务器时间戳，可用来校时。</small></td>
                        </tr>

                        <tr>
                            <td>4</td>
                            <td><small>version</small></td>
                            <td><small>接口版本</small></td>
                            <td><small>string</small></td>
                            <td><small>用途暂时保留</small></td>
                        </tr>

                        <tr>
                            <td>5</td>
                            <td><small>data</small></td>
                            <td><small>数据对象</small></td>
                            <td><small>object</small></td>
                            <td><small></small></td>
                        </tr>

                        </tbody>
                    </table>

                    <h5>请求成功时返回示例：</h5>
                    <pre>{
  "code": 0,
  "msg": "调用成功。",
  "timestamp": "1555040027820",
  "version": "1.0",
  "data": {
	// 通道类型
    "channelType": "alipay",
	// 通道名称
    "channel": "alipay_hb",
	// 订单金额。单位：元。精确小数点后2位。例：1030.00
    "money": "0.01",
	// 用户实际需要支付的金额。单位：元。精确小数点后2位。例：1021.16
    "realMoney": "0.01",
	// 平台返回的订单号
    "tradeNo": "323232553241366528",
	// 商户自己的唯一订单号
    "outTradeNo": "APP323232553119731712",
	// 订单状态：1待支付，2支付成功，3已关闭
    "status": 2,
	// 支付地址。商户需要展示该地址给付款用户
    "payUrl": "https://www.xxxx.com/payment.html?p=DgLlHVQqblKNh242vXDGU/14wY72CQlB6Kjq7+kcTaWTrRBr/7AwjoPawz9fqO1v6yw&t=alipay",
    // 付款二维码图片地址。
	"qrcodeUrl": "https://www.xxxx.com/upload/qrcode/d58ecb9bf1734967a7e124f6605d59cfac.jpg",
	// 付款二维码图片内容。
    "qrcodeContent": "https://www.xxxx.com//pay/v1/go_pay?p=DgLlHVQqblKNh75643vXDGU/14wY72CQlB6Kjq7+kcTaWTrRBr/7AwjoPawz9fqO1v6yw&t=alipay",
    // 是否支付成功
	"paySucc": true,
    // 是否回调成功
	"notifySucc": true,
    // 订单有效截止时间yyyy-MM-dd HH:mm:ss，超出无法支付。默认5分钟
	"validTime": "2019-04-11 23:00:46",
    // 订单有效截止时间戳（毫秒），超出无法支付。默认5分钟
	"validTimeMills": "1554994846000"
  }
}</pre>
                    <h5>请求失败时返回示例：</h5>
                    <pre>{
  "code": 1028,
  "msg": "uid不存在。",
  "data": null,
  "timestamp": "1554210357457",
  "version": "1.0"
}</pre>


                    <div class="space-bottom"></div>
                    <div class="space-bottom"></div>
                </div>
                <!-- main end -->
            </div>
        </div>
    </section>
</div>


<!-- main-container end -->

<!-- footer start (Add "light" class to #footer in order to enable light footer) -->
<!-- ================ -->
<!--<footer id="footer">

	&lt;!&ndash; .footer start &ndash;&gt;
	&lt;!&ndash; ================ &ndash;&gt;
	<div class="footer">
		<div class="container">
			<div class="row">
				<div class="col-md-6">
					<div class="footer-content">
						<div class="logo-footer"><img id="logo-footer" src="../../homepage/wp-content/themes/aryapay/images/logo-gray.png" alt=""></div>
						<div class="row">
							<div class="col-sm-6">
								<p>个人免签约微信和支付宝即时到账支付接口，无需提现，即时到账，100%资金安全，成功率高，金额无限制，无需隧道，支持多手机轮询，是个人收款的最佳解决方案。</p>
								<ul class="social-links circle">
									<li class="facebook"><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=11159526&site=qq&menu=yes"><i class="fa fa-qq"></i></a></li>
									<li class="twitter"><a href="#"  data-toggle="modal" id="demoBtn4" data-target="#showWeixinPublishQrcode"><i class="fa fa-weixin"></i></a></li>
								</ul>
							</div>
							<div class="col-sm-6 contactlist">

								<ul class="list-icons">
									<li><i class="fa fa-qq pr-10"></i> QQ群：99999（右侧客服处扫码加入）</li>
									<li><i class="fa fa-weixin pr-10"></i> arya99999999999</li>
									<li><i class="fa fa-phone pr-10"></i> 19999999999</li>
									<li><i class="fa fa-envelope-o pr-10"></i> 19999999999&qq.com</li>
								</ul>
							</div>
						</div>

					</div>
				</div>
				<div class="space-bottom hidden-lg hidden-xs"></div>
				<div class="col-sm-6 col-md-2">
					<div class="footer-content">
						<h2>友情链接</h2>
						<nav>
							<ul class="nav nav-pills nav-stacked">





							</ul>
						</nav>
					</div>
				</div>
				<div class="col-sm-6 col-md-3 col-md-offset-1">
					<div class="footer-content">
						<h2>支持平台</h2>
						<div class="gallery row">

							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/partner_alipay.jpg" alt="">
									<a href="https://www.alipay.com" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/partner_wxpay.jpg" alt="">
									<a href="https://pay.weixin.qq.com/" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/uploads/2018/09/upyunlogo.jpg" alt="又拍云">
									<a href="https://console.upyun.com/register/?invite=rJZeBuo_X" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/partner_aliyun.jpg" alt="">
									<a href="https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=ykozew7f&utm_source=ykozew7f" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/partner_baiduai.jpg" alt="">
									<a href="http://ai.baidu.com/" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/wordpress.jpg" alt="">
									<a href="https://www.wordpress.org/" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/magento.jpg" alt="">
									<a href="http://www.magento.com/" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/opencart.jpg" alt="">
									<a href="http://www.opencart.com/" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
							<div class="gallery-item col-xs-4">
								<div class="overlay-container">
									<img src="../../wp-content/themes/aryapay/images/shopify.jpg" alt="">
									<a href="https://www.shopify.com" class="overlay small">
										<i class="fa fa-link"></i>
									</a>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="space-bottom hidden-lg hidden-xs"></div>
		</div>
	</div>
	&lt;!&ndash; .footer end &ndash;&gt;

	&lt;!&ndash; .subfooter start &ndash;&gt;
	&lt;!&ndash; ================ &ndash;&gt;
	<div class="subfooter">
		<div class="container">
			<div class="row">
				<div class="col-md-6">

					<p>Copyright &copy; 2016-2019 ARYA云支付
				</div>
				<div class="col-md-6">
					<nav class="navbar navbar-default" role="navigation">
						&lt;!&ndash; Toggle get grouped for better mobile display &ndash;&gt;
						<div class="navbar-header">
							<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-2">
								<span class="sr-only">Toggle navigation</span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
							</button>
						</div>
						<div class="collapse navbar-collapse" id="navbar-collapse-2">
							<ul class="nav navbar-nav">
								<li><a href="../../index.html">首页</a></li>
								<li><a href="../prepare.html">API文档</a></li>
								<li><a href="../../faq.html">帮助</a></li>
								<li><a href="../../app-v2.html">软件下载</a></li>
								<li><a href="../../about.html">关于我们</a></li>
								<li><a href="https://mp.aryapay.com">ARYAV1后台</a></li>
							</ul>
						</div>
					</nav>
				</div>
			</div>
		</div>
	</div>
	&lt;!&ndash; .subfooter end &ndash;&gt;

</footer>-->

<!-- Modal -->
<!--<div class="modal fade" id="showWeixinPublishQrcode" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
				<h4 class="modal-title" id="myModalLabel">在公众号中体验支付流程</h4>
			</div>
			<div class="modal-body">
				<p align="center"><img src="https://www.wpweixin.net/wp-content/uploads/2017/01/20170118092650.png"></p>
				<p class="text-center">微信扫一扫，关注我们公众号</p>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-sm btn-default" data-dismiss="modal"><i class="fa fa-check"></i> 确定</button>
			</div>
		</div>
	</div>
</div>-->
<!-- footer end -->
</div>
<!-- 客服 -->
<style>/* 客服 */
.contact {
    top: 200px;
    z-index: 10;
    padding-bottom: 10px;
    width: 120px;
    background-color: #fff;
    box-shadow: 0 0 4px rgba(0,0,0,.2);
    position: fixed;
}
.contact.left-contact {
    left: -1px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}
.contact.right-contact {
    right: -1px;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
.contact-pic {
    width: 60px;
    height: 60px;
    margin-top: -32px;
    border: 2px solid #ff4e54;
    background: #e4e2ef url(https://www.wpweixin.net/wp-content/themes/xh-weixin/images/32-1103231q54422.png) 50% 30% no-repeat;
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.contact-time {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #aaa;
}
.contact-list{margin:0;padding: 0}
.contact-list > li {
    margin-bottom: 10px;
    text-align: center;
    list-style: none;
    margin-left: 0;
}
.contact-list > li > a {
    display: inline-block;
    width: 100px;
    height: 30px;
    line-height: 30px;
    font-size: 14px;
    text-align: center;
    color: #fff;
    background-color: #ff4e54;
    border-radius: 2px;
}
.contact-list > li > a > img {
    position: relative;
    top: 3px;
    display: inline-block;
    width: 13px;
    margin-right:5px;
}
.contact-wechat {
    width: 120px;
    height: 120px;
}
.wechat-text {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 5px;
}
</style>
<!--<div class=" contact right-contact hidden-xs">
	<div class="db contact-pic text-center "></div>
	<p class="contact-time text-center"><i class="fa fa-phone red"></i>199-9999-9999</p>

	<ul class="contact-list">

		<li><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=999999999&amp;site=qq&amp;menu=yes" target="empty_iframe"><img src="https://www.wpweixin.net/wp-content/themes/xh-weixin/images/qq-s.png">客服咨询</a></li>



	</ul>
	<img class="db contact-wechat hCenter" style="padding:8px;width: 120px;" src="../.." alt="">
	<p class="wechat-text text-center">QQ扫码加群咨询</p>
	<p class="wechat-text text-center">时间9:00-18:00</p>
</div>-->
<!-- page-wrapper end -->
<script type="text/javascript">window.$=jQuery;</script>
<!-- JavaScript files placed at the end of the document so the pages load faster
================================================== -->
<!-- Jquery and Bootstap core js files -->
<script type="text/javascript" src="../../wp-content/themes/aryapay/js/bootstrap.min.js"></script>

<!-- Modernizr javascript -->
<script type="text/javascript" src="../../wp-content/themes/aryapay/js/modernizr.min.js"></script>
<script src="../../wp-content/themes/aryapay/js/jquery-parallax.js"></script>
<script type="text/javascript" src="../../wp-content/themes/aryapay/js/jquery.appear.js"></script>

<!-- Initialization of Plugins -->
<script type="text/javascript" src="../../wp-content/themes/aryapay/js/template.js"></script>

<script>

    var curHost = window.location.protocol+"//"+window.location.host;
    $('span[name="curHost"]').html(curHost);

</script>

<!--This page loaded in 0.014 seconds with 0 database queries.-->
</body>
</html>
